Skip to content

fix: use _peerConnectionId for accurate volume tracking#228

Merged
davidliu merged 4 commits intolivekit:mainfrom
Rinzyy:main
Apr 8, 2025
Merged

fix: use _peerConnectionId for accurate volume tracking#228
davidliu merged 4 commits intolivekit:mainfrom
Rinzyy:main

Conversation

@Rinzyy
Copy link
Copy Markdown
Contributor

@Rinzyy Rinzyy commented Apr 4, 2025

The current implementation uses mediaStreamTrack.peerConnectionId, which is undefined in certain platforms. This PR fixes the issue by accessing the internal _peerConnectionId property. Though private, this is necessary for consistent behavior and avoids a silent failure in the volume processor. Tested and verified to resolve the issue.
Faced Issue :
https://livekit-users.slack.com/archives/C07FVFGAUKX/p1743737909092499
Now solved

Rinzyy added 2 commits April 4, 2025 07:49
The current implementation uses mediaStreamTrack.peerConnectionId, which is undefined in certain platforms. This PR fixes the issue by accessing the internal _peerConnectionId property. Though private, this is necessary for consistent behavior and avoids a silent failure in the volume processor. Tested and verified to resolve the issue.
The current implementation uses mediaStreamTrack.peerConnectionId, which is undefined in certain platforms. This PR fixes the issue by accessing the internal _peerConnectionId property. Though private, this is necessary for consistent behavior and avoids a silent failure in the volume processor. Tested and verified to resolve the issue.
Issue I faced From:
https://livekit-users.slack.com/archives/C07FVFGAUKX/p1743737909092499
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 4, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor Author

@Rinzyy Rinzyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added @ts-ignore

Comment thread src/hooks/useTrackVolume.ts Outdated
@davidliu davidliu merged commit 658c9d1 into livekit:main Apr 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants